package cn.mw.OpenFeign.fallbackfactory;

import cn.mw.OpenFeign.MenuFeign;
import cn.mw.OpenFeign.UserFeign;
import cn.mw.domain.Menu;
import cn.mw.domain.User;
import feign.hystrix.FallbackFactory;

public class UserFallbackFactory implements FallbackFactory<UserFeign> {


    @Override
    public UserFeign create(Throwable cause) {
        return new UserFeign() {
            @Override
            public User getOne(Long id) {
                return null;
            }
        };
    }
}
